package com.wanmait.baohan.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

public class DelPlan implements Serializable {
    private Integer id;
    private Staff staff;
    private String reason;
    private Integer dailyPlanId;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date time;



    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Staff getStaff() {
        return staff;
    }

    public void setStaff(Staff staff) {
        this.staff = staff;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Integer getDailyPlanId() {
        return dailyPlanId;
    }

    public void setDailyPlanId(Integer dailyPlanId) {
        this.dailyPlanId = dailyPlanId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", staff=").append(staff);
        sb.append(", reason=").append(reason);
        sb.append(", time=").append(time);
        sb.append(", dailyPlanId=").append(dailyPlanId);
        sb.append("]");
        return sb.toString();
    }
}